package cn.service;

import cn.domain.Privilege;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2017/3/23 0023.
 */
public interface PrivilegeService {
    /**
     * 查询所有
     * @return
     */
    public List<Privilege> findAll();

    /**
     * 根据id做查询
     * @param id
     * @return
     */
    public Privilege getById(Long id);

    /**
     * 修改权限
     * @param privilege
     */
    public void update(Privilege privilege);

    /**
     * 批量查询
     * @param id
     * @return
     */
    public List<Privilege> privilege(Long[] id);
    /**
     * 查询顶级权限
     */
    public List<Privilege> privilegeTop();

}
